package com.broada.apm.template;

import org.junit.runner.RunWith;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.modules.junit4.PowerMockRunnerDelegate;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;

import com.broada.apm.es.indices.IndicesManager;
import com.broada.apm.utils.EsClientUtil;

/**
 * 测试基础类
 * @author jianfei.xu
 * @date   2016年4月7日
 *
 */

@RunWith(PowerMockRunner.class)
@PowerMockRunnerDelegate(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:spring-data-context.xml"})
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true)
@Transactional
@PrepareForTest({EsClientUtil.class, IndicesManager.class})
@TestExecutionListeners({MockitoDependencyInjectionTestExecutionListenerEs.class }) 
public class BaseTestCaseEs {

}
